package request

// User login structure
type Login struct {
	Account  string `json:"account"`
	Password string `json:"password"`
}

type SysUserParam struct {
	Id              int         `json:"id,string" form:"id"`
	Account         string      `json:"account" form:"account"`
	Password        *string     `json:"password" form:"password"`
	NewPassword     string      `json:"newPassword" form:"newPassword"`
	NickName        string      `json:"nickName" form:"nickName"`
	Name            string      `json:"name" form:"name"`
	Avatar          int         `json:"avatar,string" form:"avatar"`
	Birthday        string      `json:"birthday" form:"birthday"`
	Sex             *int8       `json:"sex,string" form:"sex"`
	Email           string      `json:"email" form:"email"`
	Phone           string      `json:"phone" form:"phone"`
	Tel             string      `json:"tel" form:"tel"`
	GrantRoleIdList []string    `json:"grantRoleIdList" form:"grantRoleIdList"`
	GrantOrgIdList  []string    `json:"grantOrgIdList" form:"grantOrgIdList"`
	SysEmpParam     SysEmpParam `json:"sysEmpParam"`
	Status          *int        `json:"status" form:"status"`
	SearchValue     string      `json:"searchValue" form:"searchValue"`
	DataScope       []int       `json:"dataScope" form:"dataScope"`
	SearchBeginTime string      `json:"searchBeginTime" form:"searchBeginTime"`
	SearchEndTime   string      `json:"searchEndTime" form:"searchEndTime"`
	SearchStatus    *int        `json:"searchStatus" form:"searchStatus"`
}

type SysOnlineUserParam struct {
	SessionId        string `json:"sessionId" form:"sessionId"`
	Account          string `json:"account" form:"account"`
	NickName         string `json:"nickName" form:"nickName"`
	LastLoginIp      string `json:"lastLoginIp" form:"lastLoginIp"`
	LastLoginTime    string `json:"lastLoginTime" form:"lastLoginTime"`
	LastLoginAddress string `json:"lastLoginAddress" form:"lastLoginAddress"`
	LastLoginBrowser string `json:"lastLoginBrowser" form:"lastLoginBrowser"`
	LastLoginOs      string `json:"lastLoginOs" form:"lastLoginOs"`
	SearchValue      string `json:"searchValue" form:"searchValue"`
	DataScope        []int  `json:"dataScope" form:"dataScope"`
	SearchBeginTime  string `json:"searchBeginTime" form:"searchBeginTime"`
	SearchEndTime    string `json:"searchEndTime" form:"searchEndTime"`
	SearchStatus     *int   `json:"searchStatus" form:"searchStatus"`
}
